﻿@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

.container__survey {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    width: 95%;
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    height: auto;
    min-height: 746px;
    max-height: 90%;
    max-width: 695px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition-duration: 500ms;
    transition-property: transform;
    transform: scale(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.container__survey-scale {
    transform: scale(1);
}

.container__survey-header {
    width: 100%;
    padding: 1rem;
    background-color: #f8fafc;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.header__title {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: rgb(0, 0, 0);
    margin-bottom: 4px;
}

.header__title figure {
    padding: 5px 6px;
    background-color: #6d37cd6e;
    border-radius: 5px;
    border: 1px solid #c27aff;
}

.header__paragraph {
    font-size: 1.5rem;
    color: black;

}

.container__survey-footer {
    padding: .5rem;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.container__survey .container__survey--form__card {
    background-color: white;
    border-radius: 10px;
    height: 100%;
    width: 95%;
    margin: 0 auto;
    text-align: left;
    padding: 1rem 1.5rem;
    display: flex;
    padding: 0 5px;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 9;
    overflow-y: auto;
}

.container__survey-buttons {
    position: absolute;
    top: 7px;
    right: 7px;
    height: auto;
    min-height: 14px;
    width: 6rem;
    padding: 2px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border-radius: 15px;
}

.container__survey-buttons #button-close,
#button-config {
    border: none;
    height: 2rem;
    width: 2rem;
    padding: 1.5px;
    margin: 0;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.container__survey-buttons #button-close {
    background-color: #fee2e2;
    cursor: pointer;
    transition: background-color 150ms ease-in-out
}

.container__survey-buttons #button-config {
    background-color: #f0f9ff;
}

.container__survey-buttons #button-close:hover {
    background-color: #fecaca;
}

.container__survey-buttons button img {
    width: 50%;
    display: block;
    margin: 0 auto;
}

.question__survey {
    color: black;
    font-weight: 600;
    font-size: 1rem;
}

.survey-category__header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 6px 0px;
    border-bottom: .7px solid #cad5e2;
    margin-bottom: 1rem;
}

.survey-category__header span {
    display: block;
    text-align: start;
    width: auto;
    color: #211f1f;
}

.survey-category__header .survey__number {
    background-color: #f1f5f9;
    padding: .7rem;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cada conjunto de categorias */
.survey-category {
    border: 1px solid #cad5e2;
    padding: 6px 1rem;
    border-radius: 10px;
    margin-bottom: .7rem;
}

/* Cada pregunta con sus respuesta */
.survey-item {
    border: 1px solid #d9d6e9;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: .7rem;
}

.container__questions .radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 19px 0;
}

.survey-item__question {
    margin-bottom: 20px;
}

.question__survey {
    margin: 0;
    color: #252525;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}

.container__questions .radio-group .radio-option {
    display: flex;
    gap: 9px;
}

.container__questions .radio-group .radio-select {
    transform: scale(1.2);
}

.container__questions .radio-group .radio-option {
    color: black;
}


.radio-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 13px 16px;

    border: 1px solid #e2e2e8;
    border-radius: 10px;

    background: #fff;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.radio-option:hover {
    border-color: #6d37cd;
    background-color: #faf8ff;
}

.radio-option input {
    accent-color: #6d37cd;
}

.radio-option:has(input:checked) {
    border-color: #6d37cd;
    background-color: #f7f3ff;
    box-shadow: 0 0 0 2px rgba(109, 55, 205, 0.08);
}

.radio-option span {
    color: #333;
    font-size: 15px;
}

.controller__buttons {
    width: 50%;
    height: auto;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.controller__buttons button {
    width: 50%;
    min-width: 85px !important;
    height: auto;
    padding: 7px;
    border: none;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
    font-size: 1rem;
}

.controller__buttons #button-cancel {
    color: black;
    background-color: #edf0f8;
    border: .7px solid #cad5e2;
}

#button-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: 120px;
    padding: 7px 20px;

    border: none;
    border-radius: 9px;

    background: #004583;
    color: white;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.15s ease,
        opacity 0.2s ease;
}

#button-save:hover:not(:disabled) {
    background: #013d72;
}

#button-save:active:not(:disabled) {
    transform: scale(0.98);
}

#button-save:disabled {
    background: #c9c9d2;
    color: #f5f5f5;

    cursor: not-allowed;
    opacity: 0.7;
}

.survey-comment {
    margin-top: 18px;
}

.survey-comment label {
    display: block;
    margin-bottom: 8px;

    color: #444;
    font-size: 14px;
    font-weight: 600;
}



.survey-comment__textarea {
    width: 100%;
    min-height: 90px;

    padding: 12px 14px;

    border: 1px solid #dcdce5;
    border-radius: 10px;

    background: #fff;

    color: #333;
    font-family: inherit;
    font-size: 14px;

    resize: vertical;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.survey-comment__textarea::placeholder {
    color: #999;
}

.survey-comment__hint {
    margin: -2px 0 8px;

    color: #777;
    font-size: 12px;
}

.survey-comment__textarea:focus {
    outline: none;
    border-color: #6d37cd;
    box-shadow: 0 0 0 3px rgba(109, 55, 205, 0.12);
}

.survey-comment__hint {
    margin: -2px 0 8px;

    color: #777;
    font-size: 12px;
}

.container__survey--info {
    margin-bottom: 10px;

}

.container__survey--info p {
    font-size: 13px;
    color: black;
    line-height: 1.3;
}

.container__survey--info p a {
    color: rgb(12, 12, 100) !important;
    padding: .1px;
    border-radius: 2px;
    font-weight: 800;
    text-decoration: underline;
}


@media screen and (width > 624px) {
    .container__survey {
        width: 95%;
    }

    .container__survey-footer {
        flex-direction: row;
    }

    .container__survey .container__survey--form__card {
        padding: 11px 5px;
    }
}